html {
    font-size: 25px;
}
@media screen and (min-width: 751px) {
    html {
        font-size: 50px;
    }
}

body {
    min-width: 320px;
    max-width: 840px;
    margin: 0 auto;
    font-size: .48rem;
    font-family: Arial,Helvetica,STHeiTi,sans-serif;
    background-color: #F2F2F2;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
p {
    margin: 0;
}

.top-bar {
    height: 1.76rem;
    padding: 0 .68rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFDB47;
}
.top-bar img {
    height: 1.2rem;
}
.top-bar img:nth-child(2) {
    height: 1.52rem;
}

.search-box {
    height: 1.84rem;
    padding: 0 .68rem;
    display: flex;
    align-items: center;
    background-color: #FFDB47;
}
.search {
    flex: 1;
    box-sizing: border-box;
    height: 1.2rem;
    border: 1px solid #fff;
    border-radius: .92rem;

    display: flex;
    align-items: center;
    background-color: #fff;
}
.search img {
    width: 1.2rem;
}
.search input {
    flex: 1;
    height: 100%;
    padding: 0;
    margin-left: 5px;
    border: none;
    outline: none;
    border-top-right-radius: .92rem;
    border-bottom-right-radius: .92rem;
}

.banner {
    position: relative;
    height: 4.6rem;
    width: 100%;
    overflow: hidden;
}
.banner .banner-bg {
    padding: 0 2rem;
    height: 3.4rem;
    width: 100%;
    position: absolute;
    left: -2rem;
    background-color: #FFDB47;
    border-bottom-left-radius: 100%;
    border-bottom-right-radius: 100%;
}
.banner ul {
    position: absolute;
    left: .68rem;
    right: .68rem;
    top: 0;
    height: 4.6rem;
    /* margin: 0;
    padding: 0; */
    border-radius: .4rem;
    overflow: hidden;
}
.banner ul li {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.banner ul li img {
    width: 100%;
    height: 100%;
}
.ad {
    padding: 0 .48rem;
}
.ad img {
    width: 100%;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
}
nav ul li {
    width: 3rem;
    height: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    font-size: .48rem;
}
nav ul li img {
    width: 1.68rem;
}
nav ul li p {
    margin-top: .1rem;
}

.sale {
    height: 4.68rem;
    display: flex;
    margin-top: .48rem;
}
.sale img {
    height: 4.68rem;
}
.sale img:nth-child(3) {
    margin-left: .04rem;
}

.miaosha {
    margin: .68rem;
    background-color: #fff;
    border-radius: 5px;
}
.miaosha .top {
    display: flex;
    border-bottom: 1px solid #F2F2F2;
}
.miaosha .top .l {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #F2F2F2;
}
.m-item {
    padding: .48rem;
}
.m-item .h {
    display: flex;
    align-items: center;
}
.m-item .h > span:nth-child(1) {
    font-size: .56rem;
    font-weight: bold;
}
.m-item .h .time {
    margin-left: .2rem;
    font-weight: bold;
}
.m-item .h .time span {
    padding: 2px;
    background-color: #FFDB47;
    border-radius: 2px;
}
.m-item .des {
    margin-top: .12rem;
    color: #999;
}
.m-item ul {
    display: flex;
    margin-top: .08rem;
}
.m-item ul li {
    flex: 1;
    text-align: center;
}
.m-item ul li img {
    width: 2.4rem;
}
.m-item ul li p {
    margin-top: .12rem;
}
.miaosha .top .r {
    flex: 1;
}
.miaosha .bottom {
    display: flex;
}
.miaosha .bottom .h {
    width: 3.44rem;
    height: 3.44rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.miaosha .bottom .h p:nth-child(1) {
    font-size: .56rem;
    font-weight: bold;
}
.miaosha .bottom img {
    width: 2rem;
}
.miaosha .bottom ul {
    display: flex;
}
.miaosha .bottom ul li {
    width: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}
.miaosha .bottom ul li p {
    margin: .12rem 0 .32rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-list {
    margin: 0 .48rem;
}
.ranking-list > p {
    font-size: .56rem;
    font-weight: bold;
    margin-bottom: .2rem;
}
.ranking-list > ul {
    display: flex;
    justify-content: space-between;
}
.ranking-list > ul li {
    box-sizing: border-box;
    padding-top: .3rem;
    width: 4.52rem;
    height: 5.32rem;
    border-radius: .2rem;
    background-color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
}
.ranking-list > ul li img {
    width: 3rem;
    height: 3rem;
}
.ranking-list > ul li .b {
    position: relative;
    width: 100%;
    flex: 1;
    margin-top: .2rem;
    background-color: #FFDB47;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ranking-list > ul li .b span {
    position: absolute;
    top: -.32rem;
    left: 50%;
    box-sizing: border-box;
    height: .64rem;
    line-height: .64rem;
    width: 1.8rem;
    margin-left: -0.9rem;
    border: 1px solid #FFDB47;
    border-radius: .32rem;
    background-color: #fff;
    text-align: center;
    color: #FFDB47;
}

.ranks {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    margin-top: .2rem;
}
.ranks .m-item {
    width: 7rem;
    height: 4.8rem;
    box-sizing: border-box;
}
.ranks .h span:nth-child(2) {
    color: #AB813A;
    background-color: #F9F5EE;
    margin-left: .12rem;
}